package com.neo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorldController {

    @GetMapping("/hello")
    public String index(@RequestParam(value = "name", defaultValue = "LLL", required = false) String name) {
        return "Hello " + name + ",This is a remote service!";
    }
}